<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()
function onToHome() {
  router.push({ name: 'Home' })
}
</script>
<template>
  <AResult status="404" title="404" sub-title="你访问了一个不存在的页面.">
    <template #extra>
      <AButton type="primary" @click="onToHome">返回首页</AButton>
    </template>
  </AResult>
</template>
